package com.oa.bean;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class WorkDiary {

	private Integer wid;
	private String wtitle;
	private Date wdate;
	private String wcontent;
	private Integer wuser_id;
	private String reply_content;
	private Integer reply_uid;
	
	private String uname;
	
	
	private String sdate;
	
	
	public Integer getWid() {
		return wid;
	}
	public void setWid(Integer wid) {
		this.wid = wid;
	}
	public String getWtitle() {
		return wtitle;
	}
	public void setWtitle(String wtitle) {
		this.wtitle = wtitle;
	}
	public Date getWdate() {
		return wdate;
	}
	public void setWdate(Date wdate) {
		SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");
		sdate = sdf.format(wdate);
		this.wdate = wdate;
	}
	public String getWcontent() {
		return wcontent;
	}
	public void setWcontent(String wcontent) {
		this.wcontent = wcontent;
	}
	public Integer getWuser_id() {
		return wuser_id;
	}
	public void setWuser_id(Integer wuser_id) {
		this.wuser_id = wuser_id;
	}
	public String getReply_content() {
		return reply_content;
	}
	public void setReply_content(String reply_content) {
		this.reply_content = reply_content;
	}
	public Integer getReply_uid() {
		return reply_uid;
	}
	public void setReply_uid(Integer reply_uid) {
		this.reply_uid = reply_uid;
	}
	public String getSdate() {
		return sdate;
	}
	public void setSdate(String sdate) {
		SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");
		try {
			wdate = sdf.parse(sdate);
		} catch (ParseException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		this.sdate = sdate;
	}
	public String getUname() {
		return uname;
	}
	public void setUname(String uname) {
		this.uname = uname;
	}

	
}
